package group.igfd.manager.biz.service.impl;

import group.igfd.manager.biz.entity.CouponActivityEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import group.igfd.manager.biz.dao.CouponActivityDao;
import group.igfd.manager.biz.service.CouponActivityService;


@Service("couponActivityService")
public class CouponActivityServiceImpl extends ServiceImpl<CouponActivityDao, CouponActivityEntity> implements CouponActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CouponActivityEntity> page = this.selectPage(
                new Query<CouponActivityEntity>(params).getPage(),
                new EntityWrapper<CouponActivityEntity>()
        );

        return new PageUtils(page);
    }

}
